package Day14.entend;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/21 17:34
 */
public class pc extends computer{
    private String brand;

    public pc() {
    }


    public pc(String CPU, int neicun,int yingpan, String brand) {
        super(CPU, neicun, yingpan);
        this.brand = brand;
    }

    public String getBrand(String brand) {
        this.brand = brand;
        return brand;

    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void printPC(){
        System.out.println("pc信息是：");
        System.out.println(getDetails()+"，品牌："+brand);
    }
}
